﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_vendorMetadata))]//使用ts_vendorMetadata对ts_vendor进行数据验证
    public partial class ts_vendor : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class ts_vendorMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "编号", Order = 2)]
			[StringLength(10, ErrorMessage = "长度不可超过10")]
			public object c_id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "名称", Order = 3)]
			[StringLength(40, ErrorMessage = "长度不可超过40")]
			public object c_name { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "分类", Order = 4)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object c_class { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "税号", Order = 5)]
			[StringLength(15, ErrorMessage = "长度不可超过15")]
			public object c_taxcode { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "地址", Order = 6)]
			[StringLength(60, ErrorMessage = "长度不可超过60")]
			public object c_addr { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "邮编", Order = 7)]
			[StringLength(6, ErrorMessage = "长度不可超过6")]
			public object c_zip { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "电话", Order = 8)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_tele { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "传真", Order = 9)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_fax { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "联系人", Order = 10)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object c_staff { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "银行账号", Order = 11)]
			[StringLength(40, ErrorMessage = "长度不可超过40")]
			public object c_bank { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "网址", Order = 12)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object c_url { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "Email", Order = 13)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object c_email { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "拼音", Order = 14)]
			[StringLength(15, ErrorMessage = "长度不可超过15")]
			public object c_py { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "备注", Order = 15)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object c_comment { get; set; }

            [ScaffoldColumn(true)]
            [Display(Name = "状态", Order = 16)]
            [StringLength(10, ErrorMessage = "长度不可超过10")]
            public object i_sign { get; set; }


    }


}

